home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1994-12-09 | 11.0 KB | 323 lines | [ TEXT/ttxt]
# *****************PANEL DEFINTIONS******************** #you can specify the maximum and minimum height if desired #by default, Guide Maker uses a maximum height of 250 pixels <Max Height> 500 # *******generic panel that is a placeholder******* <Define Panel> "PanelGeneric" Placeholder for information that you supply. <End Panel> # *******Panels for "How do I use the tools in the toolbar?"******* <Define Panel> "Use Tools" <Panel Prompt> "introToolsprompts" The SurfWriter toolbar contains tools that you use to create and manipulate graphics. For an overview of each tool in the toolbar, click Toolbar Tour. For background information on graphics, click Designing Graphics. #When you specifically place an object you place it relative to the current pen location. Note #that the current pen location is not reset after an object is absolutely placed. The current #pen location's horizontal coordinate is the left edge of the current format; the vertical #coordinate corresponds to the last object not specifically placed using coordinates. # it's (x, y) #The first button is placed 50 pixels to the right and 20 pixels down of the current pen #location; the second button is placed 50 pixels to the right and 80 pixels down of the #current pen location. <Standard Button> "Toolbar Tour", Point(50,20), doNothingEvent() <Standard Button> "Designing Graphics", Point(50,80), doNothingEvent() <End Panel> <Define Panel> "Tools 2" <Panel Prompt> "doThisprompt" <Format> "Tag" Do This <Format> "Body" Click the Pencil icon in the toolbar. <End Panel> <Define Panel> "Tools 3" #panel that shows default features <Panel Prompt> NONE . <End Panel> <Define Panel> "Tools with Tip" #panel that shows a Tip button <Panel Prompt> "doThisprompt" <Format> "Tag" Do This <Format> "Body" Click the Pen icon in the toolbar. For information about quickly selecting tools, click the Tip button. <Standard Button> "Tip", RIGHT, LaunchNewSequenceNewWindow("Toolbar TipSeq") <End Panel> <Define Panel> "Toolbar Tip" <Panel Prompt> "Defn&HuhPrompts" You can also select tools by using Command-key equivalents. See the Shortcuts Guide for a complete list of these keys. <End Panel> <Define Panel> "Tools 4" <Panel Prompt> "YouAreDone2" <Format> "Tag" Do This <Format> "Body" Close the toolbar. <Standard Button> "Related Topics", CENTER, doNothingEvent() <End Panel> # *******Panels for "How do I add a word to the dictionary?"******* <Define Panel> "AddWords1" <Panel Prompt> "introprompts" SurfWriter comes with the SurfWriter dictionary, which you can use to check the spelling in your documents. <End Panel> <Define Panel> "AddWords2" <Panel Prompt> "doThisPrompt" <Coach Mark> "UtilsOpenDictionary" <Format> "Tag" Do This <Format> "Body" Choose Dictionary from the Utilities menu to open the Dictionary window. <End Panel> <Define Panel> "AddWords3" <Panel Prompt> "doThisprompt" <Format> "Tag" Do This <Format> "Body" Type your word to add to the dictionary in the New Word text box. #for SurfWriter, would use: #<Coach Mark> "DictionaryNewWord" #for an application similar to SimpleText: <Coach Mark> "DictionaryNewWordSimpleText" <End Panel> <Define Panel> "SWContinuePanel" #open the dictionary for the user, by sending an Apple event to the # SurfWriter application requesting it to open the Dictionary window #Apple Guide sends this event to SurfWriter when it shows this panel #<On Panel Show> SWOpenDictionary("Dictionary") <Panel Prompt> "continuePrompt" Please wait a moment. Apple Guide is assisting you by opening the dictionary. <3D Button> 1070, 1072, Center, GoBack() #(For illustrative purposes, this example uses SimpleText instead of SurfWriter.) <On Panel Show> DoAppleScript(":SurfWriter Scripts src:OpenDictionarySimpleText") <End Panel> <Define Panel> "AddWords4" <Panel Prompt> "YouAreDone" Your word is now part of the SurfWriter dictionary. <End Panel> #Example of an Oops panel #(If you use Oops instead of Continue panel in the above sequence) <Define Panel> "SWOopsPanel" <Panel Prompt> NONE <Format> "Tag" Oops <Format> "Body" You did not open the dictionary. Click OK for instructions (or open the dictionary, then click OK). <Standard Button> "OK", Center, GoBack() <End Panel> # ******************************************************** # *******Panels for "How do I create a custom dictionary?"******* #To use styled text in a panel, you can either directly embed the # style information in the file (if you have the appropriate xtnd translator) # or you can specify the style information using format commands, # as shown here. #introduction panel <Define Panel> "CreateCustomIntro" #this panel has an active Huh? button <Dimmable Button Data> "Huh?", "HuhCompareManualAndAuto" <Panel Prompt> "introprompts" <Format> "PlainText" You can create a custom dictionary manually or by using <Format> "UnderlineText" <Hot Text> "AppleScript", FIRST, LaunchNewSequenceNewWindow("Defns:AppleScript") AppleScript. <Format> "PlainTextReset" For a comparison of these two <Format> "PlainTextNormal" methods, click Huh? below. <End Panel> #Alternatively to using format commands for styled text, you can # define the panels that contain styled text in a separate file # and save the file in a format for which you have an xtnd translator, #to more easily assign style information to the hot text. #Here's an example (from a file saved in an appropriate format, "Panels with StyleInfo.src") #that shows how you can use styled text in a source file. #<Define Panel> "CreateCustomIntro" #this panel has an active Huh? button #<Dimmable Button Data> "Huh?", "HuhCompareManualAndAuto" #<Panel Prompt> "introprompts" #<Format> "Full2" #Here's the panel text: #You can create a custom dictionary manually #<Hot Text> "AppleScript", FIRST, LaunchNewSequenceNewWindow("Defns:AppleScript") #or by using AppleScript. For a comparison of these two #methods, click Huh? below. #<End Panel> #definition panel for AppleScript <Define Panel> "HotT AppleScript" <Panel Prompt> "Defn&HuhPrompts" AppleScript is a scripting language that lets you create sets of written instructions ("scripts") to automate tasks you perform in an application. <End Panel> #definition panel for Huh? panel that compares Auto vs Manual methods <Define Panel> "CompareManualAndAuto" <Panel Prompt> "Defn&HuhPrompts" You can create a custom dictionary by individually entering each word yourself or by using a script that searches an open document for tagged words and places them in the dictionary for you. <End Panel> #decision panel <Define Panel> "CreateCustomDecision" <Panel Prompt> "standard" Which do you want to do? Click one: #for <Radio Button> command, provide title of button, default setting, and font <Radio Button> "manually create a custom dictionary", FALSE, ,,, APPLEGUIDE <Radio Button> "automatically create a custom dictionary", TRUE, ,,, APPLEGUIDE <End Panel> #first panel for "manually create a custom dictionary" branch <Define Panel> "CreateCustomManual1" <Coach Mark> "UtilsOpenDictionary" <Panel Prompt> "doThisPrompt" <Format> "Tag" Do This <Format> "Body" Choose Dictionary from the Utilities menu to open the Dictionary window. <End Panel> #Continue panel for "CreateCustomManual1" panel <Define Panel> "SWContinuePanelCustomManual1" #open the Dictionary window for the user, by sending an Apple event to the # SurfWriter application requesting it to perform this action #[for example, <On Panel Show> SWOpenDictionary("Dictionary") ] #Apple Guide sends this event to SurfWriter when it shows this panel # <Panel Prompt> "continuePrompt" Please wait a moment. Apple Guide is assisting you by opening the Dictionary window. <3D Button> 1070, 1072, Center, GoBack() #(For illustrative purposes, this example uses SimpleText instead of SurfWriter.) <On Panel Show> DoAppleScript(":SurfWriter Scripts src:OpenDictionarySimpleText") <End Panel> #second panel for "manually create a custom dictionary" branch <Define Panel> "CreateCustomManual2" <Panel Prompt> "doThisPrompt" <Format> "Tag" Do This <Format> "Body" Click the Create New Custom Dictionary button to create and name a new custom dictionary. #For SurfWriter, would use: #<Coach Mark> "CustomDictionary" <Coach Mark> "CustomDictionaryButtonSimpleText" <End Panel> #third panel for "manually create a custom dictionary" branch <Define Panel> "CreateCustomManual3" <Panel Prompt> "doThisPrompt" <Format> "Tag" Do This <Format> "Body" Type your word in the New Word textbox of the Dictionary window. Repeat this step for all your words. For a shortcut, click the Tip button. <Coach Mark> "DictionaryNewWordSimpleText" <Standard Button> "Tip", RIGHT, LaunchNewSequenceNewWindow("Tip:CustomDictionary") <End Panel> #Tip panel for "manually create a custom dictionary" branch <Define Panel> "TipForCustomDictionary" <Panel Prompt> "Defn&HuhPrompts" To quickly add a word to the dictionary, select the word in your document and then click the Add Word button in the Dictionary window. <End Panel> #first panel for "automatically create a custom dictionary" branch <Define Panel> "CreateCustomAuto1" #this panel has an active Huh? button <Dimmable Button Data> "Huh?", "HuhScriptsFolder" <Panel Prompt> "doThisPrompt" <Format> "Tag" Do This <Format> "Body" Open the SurfWriter Scripts folder. For information about this folder, click Huh? below. <Standard Button> "Related Topics", RIGHT, LaunchNewSequenceNewWindow("Related Topics:CustomDictionary") <End Panel> #Related Topics panel for "automatically create a custom dictionary" branch <Define Panel> "RelatedTopicsForCustomDictionary" <Panel Prompt> "Defn&HuhPrompts" Also see these topic areas: Scripting Writing excellent prose <End Panel> #Huh panel for "automatically create a custom dictionary" branch <Define Panel> "ScriptsFolder" <Panel Prompt> "Defn&HuhPrompts" The SurfWriter Scripts folder contains three scripts: Custom Dictionary, Create Glossary, and Create Bibliography. <End Panel> #Continue panel for "CreateCustomAuto1" panel <Define Panel> "SWContinuePanelCustomAuto1" #Open the SurfWriter Scripts folder for the user, by providing a script that # performs the action for the user. # Use the DoAppleScript event function to run the script. <Panel Prompt> "continue2Prompt" Please wait a moment. Apple Guide is assisting you by opening the SurfWriter Scripts folder. <3D Button> 1070, 1072, Center, GoBack() <On Panel Show> DoAppleScript(":SurfWriter Scripts src:OpenSurfWriterScriptsFolder") <End Panel> #second panel for "automatically create a custom dictionary" branch <Define Panel> "CreateCustomAuto2" <Panel Prompt> "doThisPrompt" <Format> "Tag" Do This <Format> "Body" Double-click the Custom Dictionary script. <Coach Mark> "Custom Dictionary File" <End Panel> #closure panel for "creating a custom dictionary" <Define Panel> "CreateCustomAllDone" <Panel Prompt> "standard2" Your custom dictionary is now created. <End Panel> # *******panels for Definition panels******* <Define Panel> "PanelDefineStandardDictionary" <Panel Prompt> "Defn&HuhPrompts" Placeholder for information that you supply. <End Panel> <Define Panel> "PanelDefineCustomDictionary" <Panel Prompt> "Defn&HuhPrompts" Placeholder for information that you supply. <End Panel>